mod_errors
模块配置文件: conf/mod_errors/mod_errors.conf
"Version": "20190101000000",
"Config": {
{
"Cond": "res_code_in(\"404\")",
"Actions": [
{
"Cmd": "RETURN",
"200", "text/html", "../conf/mod_errors/404.html"
]
}
]
},
"Cond": "res_code_in(\"500\")",
"Actions": [
"Cmd": "REDIRECT",
"Params": [
"http://example.org/error.html"
]
}
]
}
]
}